import {
  SET_LIST,
  CHANGE_INPUT_VALUE,
  ADD_ITEM,
  DELETE_ITEM
} from './actionTypes'

export const setListAction = (value) => ({
  type: SET_LIST,
  value
})

export const changeInputAction = (value) => ({
  type: CHANGE_INPUT_VALUE,
  value
})

export const addItemAction = (value) => ({
  type: ADD_ITEM,
  value
})

export const deleteItemAction = (index) => ({
  type: DELETE_ITEM,
  index
})
